<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css" />
<section id="main-content">
	<section class="wrapper">
		<!--state overview end-->
		<div class="row">
			<div class="col-lg-12">
				<section class="panel">
					<header class="panel-heading">
						物资管理
						<i class="button-next icon-plus" onclick="location.href='#/addreclist'"> 新增</i>
					</header>
					<div class="panel-body">
						<div id="reclistContainer" class="dlshouwen-grid-container"></div>
						<div id="reclistToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
					</div>
				</section>

				<section class="panel">
					<header class="panel-heading">
						领用记录
					</header>
					<div class="panel-body">
						<div class="row">
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">开始日期</span>
									<input type="text" id="sftime" class="form-control" placeholder="开始日期">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">结束日期</span>
									<input type="text" id="setime" class="form-control" placeholder="结束日期">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon" style="position: relative;z-index: 2;">归属公司</span>
									<select class="form-control"
										style="position: relative;margin-left:-3px;border-top-left-radius:0;border-bottom-left-radius:0;">
										<option value="赛特斯集团">赛特斯集团</option>
										<option value="赛特斯北京">赛特斯北京</option>
										<option value="赛特斯南京">赛特斯南京</option>
										<option value="赛特斯上海">赛特斯上海</option>
										<option value="赛特斯广东">赛特斯广东</option>
										<option value="浩方科技">浩方科技</option>
									</select>
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon" style="position: relative;z-index: 2;">归属部门</span>
									<select class="form-control"
										style="position: relative;margin-left:-3px;border-top-left-radius:0;border-bottom-left-radius:0;">
										<option>请选择</option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon" style="position: relative;z-index: 2;">物资名称</span>
									<input type="text" class="form-control" placeholder="请输入物资名称">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">员工姓名</span>
									<input type="text" class="form-control" placeholder="请输入姓名自动检索">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">项目名称</span>
									<input type="text" class="form-control" placeholder="输入项目名称自动检索">
								</div>
							</div>
							<div class="col-lg-3">
								<button class="btn btn-info" ng-click="searchFunc2()" style="margin-bottom:15px;">搜索</button>
								<button class="btn btn-success" style="margin-bottom:15px;">导出</button>
							</div>
						</div>
						<div id="reclogContainer" class="dlshouwen-grid-container"></div>
						<div id="reclogToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
					</div>
				</section>

				<section class="panel">
					<header class="panel-heading">
						入库历史记录
					</header>
					<div class="panel-body">
						<div class="row">
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">开始日期</span>
									<input type="text" id="sdtime" class="form-control" placeholder="开始日期">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">结束日期</span>
									<input type="text" id="sltime" class="form-control" placeholder="结束日期">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon" style="position: relative;z-index: 2;">地点</span>
									<select class="form-control"
										style="position: relative;margin-left:-3px;border-top-left-radius:0;border-bottom-left-radius:0;"
										ng-model="search3.comp">
										<option ng-repeat="xx in areaSelect" value="{{xx.code}}">{{xx.name}}</option>
									</select>
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon" style="position: relative;z-index: 2;">物资名称</span>
									<input type="text" class="form-control" ng-model="search3.materName">
								</div>
							</div>
						</div>
						<div class="row">

							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">员工姓名</span>
									<input type="text" class="form-control" ng-model="search3.userName">
								</div>
							</div>
							<div class="col-lg-3">
								<div class="input-group m-bot15">
									<span class="input-group-addon">项目名称</span>
									<input type="text" class="form-control" placeholder="请输入项目名称" ng-model="search3.projName">
								</div>
							</div>
							<div class="col-lg-3">
								<button class="btn btn-info" ng-click="searchFunc3()" style="margin-bottom:15px;">搜索</button>
								<button class="btn btn-success" ng-click="downloadFunc3()" style="margin-bottom:15px;">导出</button>
							</div>
						</div>
						<div id="greclogContainer" class="dlshouwen-grid-container"></div>
						<div id="greclogToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
					</div>
				</section>
			</div>
		</div>
	</section>
</section>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>

<script type="text/javascript">
	// 开始日期
	$('#sftime').datepicker({
		format: 'yyyy-mm-dd'
	});
	// 结束日期
	$('#setime').datepicker({
		format: 'yyyy-mm-dd'
	});
	var $$scope;
	// 开始日期
	$('#sdtime').datetimepicker({
		format: 'YYYY-MM-DD',
		locale: moment.locale('zh-cn')
	}).on('dp.change', function (e) {

		var result = new moment(e.date).format('YYYY-MM-DD');
		if (result && !angular.isUndefined(result)) {
			$$scope.search3.startTime = result;
			$$scope.$apply();
		}
	});
	// 结束日期
	$('#sltime').datetimepicker({
		format: 'YYYY-MM-DD',
		locale: moment.locale('zh-cn')
	}).on('dp.change', function (e) {
		var result = new moment(e.date).format('YYYY-MM-DD');
		if (result && !angular.isUndefined(result)) {
			$$scope.search3.endTime = result;
			$$scope.$apply();
		}
	});

</script>
<script src="js/reclist/index.js"></script>